<html>
	<head></head>
	<body>
		<script type="text/javascript" src="../../small-jsunit.js"></script>
		
		<h2>Test Case Errors Example</h2>
		
		<tt>
		<h2>All OK</h2>
		<script type="text/javascript">
			function TestingExampleTestCase() {
				this.beforeClass = function() {};
				this.before = function() {};
				this.testExample = function() {};
				this.after = function() {};
				this.afterClass = function() {};
			};
			runner.documentTestCaseRunner(new TestingExampleTestCase(), true);
		</script>
		<h2>beforeClass fails</h2>
		<script type="text/javascript">
			function TestingExampleTestCase() {
				this.beforeClass = function() {assert.fail("this is a fail() message")};
				this.before = function() {};
				this.testExample = function() {};
				this.after = function() {};
				this.afterClass = function() {};
			};
			runner.documentTestCaseRunner(new TestingExampleTestCase(), true);
		</script>
		<h2>before fails</h2>
		<script type="text/javascript">
			function TestingExampleTestCase() {
				this.beforeClass = function() {};
				this.before = function() {assert.fail("this is a fail() message")};
				this.testExample = function() {};
				this.after = function() {};
				this.afterClass = function() {};
			};
			runner.documentTestCaseRunner(new TestingExampleTestCase(), true);
		</script>
		<h2>after fails</h2>
		<script type="text/javascript">
			function TestingExampleTestCase() {
				this.beforeClass = function() {};
				this.before = function() {};
				this.testExample = function() {};
				this.after = function() {assert.fail("this is a fail() message")};
				this.afterClass = function() {};
			};
			runner.documentTestCaseRunner(new TestingExampleTestCase(), true);
		</script>
		<h2>afterClass fails</h2>
		<script type="text/javascript">
			function TestingExampleTestCase() {
				this.beforeClass = function() {};
				this.before = function() {};
				this.testExample = function() {};
				this.after = function() {};
				this.afterClass = function() {assert.fail("this is a fail() message")};
			};
			runner.documentTestCaseRunner(new TestingExampleTestCase(), true);
		</script>
		<h2>Regular method fails</h2>
		<script type="text/javascript">
			function TestingExampleTestCase() {
				this.beforeClass = function() {};
				this.before = function() {};
				this.testExample = function() {assert.fail("this is a fail() message")};
				this.after = function() {};
				this.afterClass = function() {};
			};
			runner.documentTestCaseRunner(new TestingExampleTestCase(), true);
		</script>
		</tt>

	</body>
</html>
